const roomManage = [{
  path: 'roomManage',
  name: 'roomManage',
  component: () =>
    import(/* webpackChunkName: "roomManage" */ '@main/routes/apartmentManage/roomManage'),
  meta: {
    role: '房源管理'
  },
  children: [{
    path: 'index',
    name: 'roomManageIndex',
    component: () =>
        import(/* webpackChunkName: "roomManageIndex" */ '@main/routes/apartmentManage/roomManage/content/tabList'),
    meta: {
      role: '房源管理'
    }
  },
  {
    path: 'floorManageindex',
    name: 'floorManage',
    component: () =>
        import(/* webpackChunkName: "roomManageIndex" */ '@main/routes/apartmentManage/roomManage/content/floorManage')
  },
  {
    path: 'homeManageindex',
    name: 'homeManage',
    component: () =>
        import(/* webpackChunkName: "roomManageIndex" */ '@main/routes/apartmentManage/roomManage/content/homeManage')
  }
  ]
}]
const floorSpread = [{
  path: 'floorSpread',
  name: 'floorSpread',
  component: () =>
    import(/* webpackChunkName: "roomManage" */ '@main/routes/apartmentManage/floorSpread'),
  meta: {
    role: '楼层分布'
  },
  children: [{
    path: 'index',
    name: 'floorManageIndex',
    component: () =>
      import(/* webpackChunkName: "roomManageIndex" */ '@main/routes/apartmentManage/floorSpread/content'),
    meta: {
      role: '楼层分布'
    }
  }]
}]
const bedManage = [{
  path: 'bedManage',
  name: 'bedManage',
  component: () =>
    import(/* webpackChunkName: "roomManage" */ '@main/routes/apartmentManage/bedManage'),
  meta: {
    role: '床位管理'
  },
  children: [{
    path: 'index',
    name: 'bedManageIndex',
    component: () =>
      import(/* webpackChunkName: "roomManageIndex" */ '@main/routes/apartmentManage/bedManage/content/tabList'),
    meta: {
      role: '床位管理'
    }
  }, {
    path: 'bedSet',
    name: 'bedSet',
    component: () =>
      import(/* webpackChunkName: "roomManageIndex" */ '@main/routes/apartmentManage/bedManage/content/bedSet'),
    meta: {
      role: '床位设置'
    }
  }]
}]
const apartmentManage = [{
  path: 'apartmentManage',
  name: 'apartmentManage',
  component: () =>
    import(/* webpackChunkName: "apartmentManage" */ '@main/routes/apartmentManage'),
  meta: {
    role: '公寓管理'
  },
  children: [
    ...roomManage, ...floorSpread, ...bedManage
  ]
}]

export default [
  ...apartmentManage
]
